package com.decorator.csl;

/**
 * Created by siyuzhiyue on 2017/6/14.
 */
public class ManagerA extends Manager {
    Person person;

    public ManagerA(Person person){
        super();
        this.person = person;
    }

    @Override
    public void doCoding() {
        person.doCoding();
        doEarlyWork();
    }

    public void doEarlyWork(){
        System.out.println("ManagerA");
    }
}
